/*
 *  Copyright 2009 Honiewelle Flores 
 *  
 *  Licensed under the Apache License, Version 2.0 (the "License"); 
 *  you may not use this file except in compliance with the License. 
 *  You may obtain a copy of the License at 
 *  
 *  	http://www.apache.org/licenses/LICENSE-2.0 
 *  
 *  Unless required by applicable law or agreed to in writing, software 
 *  distributed under the License is distributed on an "AS IS" BASIS, 
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 *  See the License for the specific language governing permissions and 
 *  limitations under the License. 
 */

package com.einox.chikko;

import java.io.Serializable;

public class Buddy implements Serializable, Comparable<Buddy>{

	
	/**
	 *  Chikka buddy
	 */
	
	public static final int STATUS_AWAY = 0;
	public static final int STATUS_AVAILABLE = 2;
	public static final int STATUS_BUSY = 4;
	public static final int STATUS_IDLE = 8;
	
	private static final long serialVersionUID = 1L;
	
	private int id;
	private int status;

	private String chikkaID;
	private String firstName;
	private String lastName;
	private String nickName;
	private String email;
	private String country;
	private String mobile;
	private String carrier;
	private String screenName;
	
	public Buddy(String chikkaID){
		this.chikkaID = chikkaID;
	}
	
	
	
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getCarrier() {
		return carrier;
	}
	
	public void setCarrier(String carrier) {
		this.carrier = carrier;
	}
	
	public String getChikkaID() {
		return chikkaID;
	}
	
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getEmail() {
		return email;
	}

	public void setScreenName(String screenName) {
		this.screenName = screenName;
	}

	public String getScreenName() {
		return screenName;
	}
	
	public String toString(){
		return chikkaID + " : " + screenName;
	}

	@Override
	public int compareTo(Buddy arg0) {	
		return arg0.getScreenName().compareTo(screenName);
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getStatus() {
		return status;
	}
	
	
}
